package com.xiaoliu28.group1.controller2;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/organization")
@Api(tags = "03. 组织管理模块")
public class OrganizationController {
    @PostMapping("/add")
    @ApiOperation("01 添加账号(单一)")
    @ApiOperationSupport(order = 1)
    public String add() {
        return "添加成功！";
    }

    @GetMapping("/details")
    @ApiOperation("02 查看账号")
    @ApiOperationSupport(order = 2)
    public String details() {
        return "查看成功！";
    }

    @PostMapping("/delete")
    @ApiOperation("03 删除账号(单一)")
    @ApiOperationSupport(order = 3)
    public String delete() {
        return "删除成功！";
    }

    @PostMapping("/update")
    @ApiOperation("04 修改账号")
    @ApiOperationSupport(order = 4)
    public String update() {
        return "修改成功！";
    }

    @PostMapping("/adds")
    @ApiOperation("05 添加账号(多个)")
    @ApiOperationSupport(order = 5)
    public String adds() {
        return "添加成功！";
    }

    @PostMapping("/deletes")
    @ApiOperation("06 删除账号(多个)")
    @ApiOperationSupport(order = 6)
    public String deletes() {
        return "删除成功！";
    }
}
